package indi.zhang.ttl.tools;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.concurrent.ExecutorService;

@Component
@RequiredArgsConstructor
public class TTLUtils {

    private final ExecutorService executorService;

    public void aysnc(Runnable runnable) {
        executorService.submit(runnable);
    }

}
